<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link rel="stylesheet" href="scripts/e.ui.2.15.6.css">
    <link rel="stylesheet" href="style/default.css">
    <link rel="stylesheet" href="style/login.css">
    <link rel="stylesheet" href="style/layout.css">
    <link rel="stylesheet" href="style/index.css">
    <!-- <link rel="stylesheet" href="scripts/vxe-table.3.5.2.css"> -->
    <link rel="stylesheet" href="scripts/vxe-table.3.5.9.css">
    <link rel="stylesheet" href="style/transition.css">
    <link rel="stylesheet" href="style/iconfont.css">
    <link rel="stylesheet" href="style/iconfontColour.css">
    <link rel="stylesheet" href="style/treeComponent.css">
    <link rel="stylesheet" href="style/vxeTablePro.css">
    <link rel="stylesheet" href="style/elementuiPro.css">
    <link rel="stylesheet" href="style/shipArchives.css">
    <link rel="stylesheet" href="style/projectFile.css">
    <link rel="stylesheet" href="style/form.css">
    <link rel="stylesheet" href="style/home.css">
    <link rel="stylesheet" href="style/workBench.css">
    <link rel="stylesheet" href="style/loadingAnimate.css">
    <link rel="stylesheet" href="style/finShopping.css">
    <script src="scripts/axios.0.18.0.js"></script>
    <script src="scripts/go.js"></script>
    <script src="scripts/echarts.js"></script>
    <link rel="shortcut icon" type="image/x-icon" href="assets/images/logo.png">

</head>

<body style="margin: 0;">
    <div id="app"></div>
    <link rel="stylesheet" />
    <script>
    </script>


    <script src="scripts/vue.2.6.14.js"></script>
    <script src="scripts/vue-router.3.0.2.js"></script>
    <script src="scripts/vuex.2.0.0.js"></script>

    <script src="scripts/e.ui.2.15.6.js"></script>
    <!-- <script src="scripts/xe-utils.3.5.4.js"></script> -->
    <!-- <script src="scripts/vxe-table.3.5.2.js"></script> -->
    <script src="scripts/xe-utils.3.5.6.js"></script>
    <script src="scripts/vxe-table.3.5.9.js"></script>
    <script src="scripts/moment.min.js"></script>
    <script src="scripts/g6-4.6.15.min.js"></script>
    <script src="utils/insertcss.js"></script>
    <script src="utils/nanoid.js"></script>
    <script src="utils/indexedDB.js"></script>
    <script src="scripts/html2canvas.min.js"></script>

    <script src="utils/iconfontColour.js"></script>

    <script src="appframe.js"></script>
    <script src="app.js"></script>

    <script src="route.define.js"></script>
    <script src="router.each.js"></script>
    <script type="module" src="render.js"></script>
    <script src="menu.js"></script>
    <!--<script src="http://localhost:5000/vue/menu.js"></script>-->
    <script src="scripts/xlsx.js"></script>
    <script src="scripts/calendar.js"></script>
    <script src="scripts/Sortable.min.js"></script>
    <script src="utils/validate.js"></script>
    <script src="utils/fileTypeIMG.js"></script>
    <script src="utils/fileType.js"></script>
    <!-- <script src="http://192.168.1.101:8000/web/editors/spireapi/SpireCloudEditor.js"></script> -->

    <script type="text/javascript">

        const dbName = 'iMRODB';

        //itking add start
        var pathname = document.location.pathname;
        var protocol = document.location.protocol;
        var isFile = protocol.startsWith("file:");
        // link动态加载css
        const link = document.createElement("link");
        link.rel = "stylesheet";
        isFile ? link.href = "./style/bxs.css" : '';
        document.head.appendChild(link);
        pathname = isFile ? pathname.substring(0, pathname.lastIndexOf("/index.html")) : null;
        //end



        // 系统页面url
        //const syspageURL = 'http://localhost:8181/maintain/';
        //const syspageURL = document.location.protocol + document.location.host + "/";
        const syspageURL = isFile ?
            protocol + "//" + pathname + "/" :
            protocol + "//" + document.location.host + "/";



        const menuUrl = 'http://localhost:5081/vue/menu.js';
        // 子页面url
        //const pageURL = 'http://localhost:5050/vue/';
        //const pageURL = document.location.protocol + document.location.host + "/vuepages/";
        //更新代码时如果修改'vuepages'文件名,需要同步修改index.html以及render.js内相应的名称或引入路径名
        const pageURL = isFile ?
            protocol + "//" + pathname + "/vuepages/" :
            protocol + "//" + document.location.host + "/vuepages/";


        // 接口url
        const requestURL = 'http://localhost:5081/api';
        // const requestURL = 'http://192.168.1.101:5000/api';
        // 可视化
        const visualization = 'http://193.168.31.3:8181/#/Dashboard';
        //const visualization = 'http://localhost:8181/#/Dashboard';

        // 系统内文件存放路径
        const sysFileUrl = {
            help: 'http://localhost/help/', // 帮助文档在用,上面几个已经弃用
        };

        // 系统页面顶部功能区域高度
        // window.innerHeight - (navbar 50) - (tagsView 35)
        // 正常情况下为85；不显示顶部功能区域时为0；
        //const topBarHeight = 85;
        const topBarHeight = isFile ? 0 : 55;


        VXETable.setup({
            grid: {
                // size: 'medium'
            }
        });
        //页面刷新，带cookie的授权成员信息
        window.onbeforeunload = function () {
            var sAuthBearer = sessionStorage.getItem('token');
            if (sAuthBearer == null || sAuthBearer.length === 0) {
                return
            };

            document.cookie = 'X-NXDO-Bearer=' + sAuthBearer + ';path = /';
        };
        ////页面装载完成，移除cookie的授权成员信息
        //window.addEventListener('DOMContentLoaded', (event) => {
        //});
    </script>

</body>

</html>